package com.zhxt.system.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDate;

/**
 * 指标结果表
 *
 * @author zhxt
 */
@Getter
@Setter
public class ZhxtItemsValue {
    //指标代码
    private String itemcode;
    //统计年月
    private String yearmon;
    //统计日期
    private LocalDate sxdate;
    //机构代码
    private String tjcode;
    //机构名称
    private String tjname;
    //条线
    private String saleattr;
    //日数据
    private Double rvalue;
    //月数据
    private Double mvalue;
    //年数据
    private Double yvalue;
    //上级机构代码
    private String uptjcode;
    //指标生成时间
    private LocalDate indate;
    //真实机构代码
    private String cycode;
    //状态：0有效，1无效
    private String status;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("itemcode", getItemcode())
                .append("yearmon", getYearmon())
                .append("sxdate", getSxdate())
                .append("tjcode", getTjcode())
                .append("tjname", getTjname())
                .append("saleattr", getSaleattr())
                .append("rvalue", getRvalue())
                .append("mvalue", getMvalue())
                .append("yvalue", getYvalue())
                .append("uptjcode", getUptjcode())
                .append("indate", getIndate())
                .append("cycode", getCycode())
                .append("status", getStatus())
                .toString();
    }

}
